<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	template="/templates/templateAcesso.xhtml">
	<ui:param name="tituloPagina" value="#{tituloPagina}" />
	<ui:param name="renderedBtnCadastrar" value="#{renderedBtnCadastrar}" />
	<ui:param name="renderedBtnVoltar" value="#{renderedBtnVoltar}" />
	<ui:param name="renderedBtnRegistrar" value="#{renderedBtnRegistrar}" />
	<ui:param name="renderedBtnEntrar" value="#{renderedBtnEntrar}" />

	<ui:define name="contAcesso">
		<div class="content">
			<h4 class="title">#{tituloPagina}</h4>
			<ui:insert name="contFormAcesso">
			</ui:insert>
		</div>
		<div class="foot">

			<h:commandButton id="btnCadastrar" styleClass="btn btn-primary"
				type="submit" value="Cadastrar" action="#{bean.persist}"
				rendered="#{renderedBtnCadastrar == true}" />

			<h:commandButton id="btnVoltar" styleClass="btn btn-default"
				type="submit" action="#{bean.getListView()}" immediate="true"
				value="Voltar" rendered="#{renderedBtnVoltar == true}" />

			<h:commandButton id="btnRegistrar" value="Registrar" type="submit"
				action="#{bean.getEditView()}" styleClass="btn btn-primary"
				data-dismiss="modal" immediate="true"
				rendered="#{renderedBtnRegistrar == true}" />

			<h:commandButton id="btnEntrar" type="submit"
				action="#{bean.login}" value="Entrar" styleClass="btn btn-default"
				data-dismiss="modal" rendered="#{renderedBtnEntrar == true}" />
		</div>
	</ui:define>
</ui:composition>